package sgi.message;

import java.util.List;

import sgi.client.SGIUserAccountMenuController;
import sgi.misc.History;

public class MessageHistory extends Message {

	private String qPurchaseHistory;
	public List<History> PurchaseHistory;
	public List<History> SearchHistory;
	//private List<String,String> SearchHistory;
	
	public MessageHistory() {
		super("SELECT * FROM sgi.history_search where username = '"+SGIUserAccountMenuController.getUser().getUsername()+"'");
		setqPurchaseHistory("SELECT * FROM sgi.history_purchase where username = '"+SGIUserAccountMenuController.getUser().getUsername()+"'");
	}
	public String getqPurchaseHistory() {
		return qPurchaseHistory;
	}
	public void setqPurchaseHistory(String qPurchaseHistory) {
		this.qPurchaseHistory = qPurchaseHistory;
	}
	public List<History> getPurchaseHistory() {
		return PurchaseHistory;
	}
	public void setPurchaseHistory(List<History> history) {
		this.PurchaseHistory = history;
	}
	
	public List<History> getSearchHistory() {
		return SearchHistory;
	}
	public void setSearchHistory(List<History> history) {
		this.SearchHistory = history;
	}

}
